package idea.mybatis.db.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author idea
 * @since 2017-01-01
 */
@TableName("sys_test")
public class SysTest extends Model<SysTest> {

    private static final long serialVersionUID = 1L;

    @TableId("test_id")
	private Integer testId;
	private String name;


	public Integer getTestId() {
		return testId;
	}

	public SysTest setTestId(Integer testId) {
		this.testId = testId;
		return this;
	}

	public String getName() {
		return name;
	}

	public SysTest setName(String name) {
		this.name = name;
		return this;
	}

	public static final String TEST_ID = "test_id";

	public static final String NAME = "name";

	@Override
	protected Serializable pkVal() {
		return this.testId;
	}

	@Override
	public String toString() {
		return "SysTest{" +
			"testId=" + testId +
			", name=" + name +
			"}";
	}
}
